home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / Standard Views / ProgressView.h < prev    next >
Text File  |  1997-06-28  |  757b  |  44 lines

  1. // ProgressView.h
  2.  
  3. #ifndef ProgressView_h
  4. #define ProgressView_h
  5.  
  6. #ifndef View_h
  7. #include "View.h"
  8. #endif
  9. #ifndef Ear_h
  10. #include "Ear.h"
  11. #endif
  12.  
  13. class Progress;
  14.  
  15. class ProgressView: public View
  16.   {
  17.     private:
  18.         const Progress& progress;
  19.         Ear<ProgressView> ear;
  20.         int16 split;
  21.         
  22.         void UpdateSplit();
  23.         
  24.         virtual void GainMapping();
  25.         virtual void ChangeBounds( Rectangle oldBounds );
  26.         
  27.     public:
  28.         ProgressView( const Progress& );
  29.         ~ProgressView();
  30.         
  31.         virtual void Draw( const ViewMap& ) const;
  32.  
  33.         virtual uint16 MinimumWidth() const;
  34.         virtual uint16 MinimumHeight() const;
  35.         
  36.         virtual uint16 ReasonableWidth() const;
  37.         virtual uint16 ReasonableHeight() const;
  38.         
  39.         virtual uint16 BestWidth() const;
  40.         virtual uint16 BestHeight() const;
  41.   };
  42.  
  43. #endif
  44.